<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8" />
  <meta http-equiv="X-UA-Compatible" content="IE=edge" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.1.1/css/all.min.css"
    integrity="sha512-KfkfwYDsLkIlwQp6LFnl8zNdLGxu9YAA1QvwINks4PhcElQSvqcyVLLD9aMhXd13uQjoXtEKNosOWaZqXgel0g=="
    crossorigin="anonymous" referrerpolicy="no-referrer" />
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.1.1/css/fontawesome.min.css"
    integrity="sha512-xX2rYBFJSj86W54Fyv1de80DWBq7zYLn2z0I9bIhQG+rxIF6XVJUpdGnsNHWRa6AvP89vtFupEPDP8eZAtu9qA=="
    crossorigin="anonymous" referrerpolicy="no-referrer" />
  <link rel="stylesheet" href="style.css" />
  <title>Login/Signup page</title>
</head>

<!-- 传送请求到服务器，服务器去数据库查询并返回数据 -->

<body>
  <h2>Sign in/ Sign up</h2>
  <div class="container" id="container">
    <div class="form-container sign-up-container">
      <form action="" id="signUpForm">
        <h1>Create Account</h1>
        <div class="social-container">
          <a href="#" onclick="event.preventDefault()"><i class="fab fa-facebook-f"></i></a>
          <a href="#" onclick="event.preventDefault()"><i class="fab fa-google-plus-g"></i>
          </a>
          <a href="#" onclick="event.preventDefault()"><i class="fab fa-linkedin-in"></i></a>
        </div>
        <span>or use your email for registration</span>
        <input type="text" placeholder="Name" name="username" />
        <input type="email" placeholder="Email" name="email" />
        <input type="password" placeholder="Password" name="password" />
        <button id="realsignUp">Sign Up</button>
      </form>
    </div>
    <div class="form-container sign-in-container">
      <form action="" id="signInForm">
        <h1>Sign in</h1>
        <div class="social-container">
          <a href="#" onclick="event.preventDefault()"><i class="fab fa-facebook-f"></i></a>
          <a href="#" onclick="event.preventDefault()"><i class="fab fa-google-plus-g"></i>
          </a>
          <a href="#" onclick="event.preventDefault()"><i class="fab fa-linkedin-in"></i></a>
        </div>
        <span>or use your account</span>

        <input type="text" placeholder="Username" name="username" />
        <input type="password" placeholder="Password" name="password" />
        <a href="#" onclick="event.preventDefault()">Forgot your password?</a>
        <button id="realsignIn">Sign In</button>
      </form>
    </div>
    <div class="overlay-container">
      <div class="overlay">
        <div class="overlay-panel overlay-left">
          <h1>Welcome Back!</h1>
          <p>
            To keep connected with us please login with your personal info
          </p>
          <button class="ghost" id="signIn">Sign In</button>
        </div>
        <div class="overlay-panel overlay-right">
          <h1>Hello,Friend!</h1>
          <p>Enter your personal details and start journey with us</p>
          <button class="ghost" id="signUp">Sign Up</button>
        </div>
      </div>
    </div>
  </div>
  <footer>
    <p>
      Created with<i class="fa fa-heart"></i>by us
    </p>
  </footer>

  <script defer src="script.js"></script>
</body>

</html>